@extends('Home.Index.index')
@section('title')
    用户订单列表
@endsection

@section('content')
    <section id="main">
        <div class="container_12">
            <div id="sidebar" class="grid_3">
                <aside id="categories_nav">
                    <h3>用户中心</h3>

                    <nav class="left_menu">
                        <ul>
                            <li><a href="{{url('/user_info/')}}">个人信息</a></li>
                            <li><a href="{{url('/user_address/')}}">收货地址管理</a></li>
                            <li><a href="{{url('/user_address_list/')}}">我的收货地址</a></li>
                            <li><a href="{{url('/user_order/')}}">我的订单</a></li>
                        </ul>
                    </nav><!-- .left_menu -->
                </aside><!-- #categories_nav -->

                {{--<aside id="manufacturers">--}}

                {{--</aside><!-- #categories_nav -->--}}

                {{--<aside id="tags">--}}

                {{--</aside><!-- #tags -->--}}

                {{--<aside id="newsletter_signup">--}}

                {{--</aside><!-- #newsletter_signup -->--}}

            </div><!-- .sidebar -->
            <div id="content" class="grid_9">
                <h1 class="page_title">欢迎来到用户中心</h1>
                <br>
                    <table class="cart_product">
                        <tr>
                            <th class="images"></th>
                            <th class="name">商品名称</th>
                            <th class="qty">商品数量</th>
                            <th class="close">单价</th>
                            <th class="price">小计</th>
                        </tr>
                        @foreach($goods as $v)
                            <tr>
                                <td class="images"><a href=""><img src="{{$v->img_src}}" alt=""></a></td>
                                @if(empty($v->property))
                                    <td class="name">{{$v->goods_name}}</td>
                                    @else
                                    <td class="name">{{$v->goods_name}}&nbsp;<br>{{$v->property}}</td>
                                @endif
                                <td class="qty"><input type="text" name="num" value=""  placeholder="{{$v->goods_count}}"/></td>
                                <td class="close">￥{{$v->price}}</td>
                                <td class="price">￥{{$v->price*$v->goods_count}}<span class="num_price"></span></td>
                            </tr>
                            @endforeach
                    </table>
            </div>
        </div><!-- .container_12 -->
    </section><!-- #main -->
    <div class="clear"></div>
@endsection